package com.reyco1.platformengine.tile
{
	import flash.display.Graphics;
	
	public class DoorTile extends BaseTile
	{
		protected var _newCharacterX:Number;
		protected var _newCharacterY:Number;
		protected var _newMapID:Number;
		
		public function DoorTile(w:Number, h:Number)
		{
			super(w, h);
		}
		
		override public function build():void
		{
			var g:Graphics = this.graphics;
			g.lineStyle(1, 0x000000);
			g.beginFill(0x999999);
			g.drawRect(0, 0, width, height);
			g.endFill();
			
			walkable = true;
			isDoor = true;
		}
		
		public function get newCharacterX():Number
		{
			return _newCharacterX;
		}

		public function set newCharacterX(value:Number):void
		{
			_newCharacterX = value;
		}

		public function get newCharacterY():Number
		{
			return _newCharacterY;
		}

		public function set newCharacterY(value:Number):void
		{
			_newCharacterY = value;
		}

		public function get newMapID():Number
		{
			return _newMapID;
		}

		public function set newMapID(value:Number):void
		{
			_newMapID = value;
		}
		
	}
}